package org.mozhu.mboot.core.json;

import java.io.IOException;
import java.io.Writer;

public interface JSONSerializer {

	void serialize(Writer writer, Object object) throws IOException;

	void serializePretty(Writer writer, Object object) throws IOException;

	String toJSONString(Object object) throws IOException;

	String toPrettyJSONString(Object object) throws IOException;

}
